.host {
  display: flex;
  align-items: center;
  color: var(--vkui--color_text_secondary);

  --vkui_internal--UsersStack_item_size: 16px;
}

.sizeS {
  --vkui_internal--UsersStack_item_size: 16px;
}

.sizeM {
  --vkui_internal--UsersStack_item_size: 24px;
}

.sizeL {
  --vkui_internal--UsersStack_item_size: 32px;
}

.avatarsPositionInlineEnd {
  flex-direction: row-reverse;
}

.avatarsPositionBlockStart {
  flex-direction: column;
  justify-content: center;
}

.photos {
  display: flex;
}

.fill {
  fill: var(--vkui--color_image_placeholder_alpha);
}

.item {
  min-inline-size: var(--vkui_internal--UsersStack_item_size);
  block-size: var(--vkui_internal--UsersStack_item_size);
}

.photo {
  max-inline-size: var(--vkui_internal--UsersStack_item_size);
}

.counter {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: var(--vkui--spacing_size_xs);
  color: var(--vkui--color_text_contrast_themed);
  background: var(--vkui--color_icon_secondary);
  border-radius: calc(var(--vkui_internal--UsersStack_item_size) / 2);
}

.photoWrapper {
  display: flex;
}

.photoWrapper:not(:first-child) {
  margin-inline-start: -2px;
}

.text {
  flex: 1;
  min-inline-size: 0;
}

.avatarsPositionBlockStart .text {
  margin-block-start: 8px;
  text-align: center;
}

.avatarsPositionInlineStart .text {
  margin-inline-start: 8px;
}

.avatarsPositionInlineEnd .text {
  margin-inline-end: 8px;
}
